package com.wench.design.pattern.visitor;

/**
 * @author wench
 */
public class VisitorClient {

    public static void main(String[] args) {

        Home home = new Home();
        home.add(new Cat());
        home.add(new Dog());
        Owner owner = new Owner();
        home.action(owner);
        System.out.println("=============================");
        Someone someone = new Someone();
        home.action(someone);
    }
}
